package yxy.cherry.battle.module.record.stream;

/**
 * @author James
 * Buff
 * @date 2022/2/21 11:57
 **/

import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.module.affix.Buff;

public class RecordStream_BUF extends RecordStream {

	private Fighter actor;
	private String buffCode;
	private String  buffSeqCode;

	public RecordStream_BUF(Fighter actor, Buff buff) {
		this.actor = actor;
		this.buffCode = buff.getBuffCode();
		this.buffSeqCode = buff.getBuffCodeSeq();
	}

	@Override
	protected void _record() {
		sb().append("#BUF");
		sb().append("|");
		sb().append(actor.getFighterPosition().code());
		sb().append("|");
		sb().append(buffCode);
		sb().append("|");
		sb().append(buffSeqCode);
		sb().append(";");
	}

}
